<?php
#引入文件
    include 'Upload.php';
    include 'Query.php';
    //开启
    session_start();
    //接收网页
    $date=$_POST;
    //接收的图片
    $photo=Uploads($_FILES['photo']);
    //文件过滤 ---不重复出现
    if(Query('张三',123)!=null){
        $_SESSION['new_user']=Query('张三',123);
        //跳转到 index.php
        header('location:index.php');
    }


//照片存储路径
    if($photo===false) die('客户照片上传失败了，请重试！');
    $date['photo']=$photo;
    $date['reg_time']=date('Y-m-d  H:i:S',time());
    $date['money']=0;
//存储客户信息
    $tem=$_SESSION['user'];
    $tem[]=$date;
    $_SESSION['user']=$tem;
    echo "<pre/>";
    var_dump($_SESSION['user']);

